cc.Class({
    extends: cc.Component,

    properties: {
        tip:{
            default:null,
            type:cc.Label
        },
        isUpdate:false,
        
    },

    // use this for initialization
    onLoad: function () {
        if(!cc.vv){
            return;
        }
        if(!cc.vv&&!cc.vv.initVersion){
            return;
        }
        this.tip.string=cc.vv.initVersion._version;
        // console.log("cc.vv.initVersion._version="+cc.vv.initVersion._version);
    },

    update: function (dt) {
        if(!cc.vv){
            return;
        }
        if(this.isUpdate&&!cc.vv&&!cc.vv.initVersion){
            return;
        }
        this.tip.string=cc.vv.initVersion._version;
    },

});
